<?php


namespace app\blog\model;


use app\common\BaseModel;

class ArticleTagModel extends BaseModel
{
    protected $table = 'blog_admin_article_tag';

    /**
     * 一对一关联
     * @return \think\model\relation\HasOne
     */
    public function tagArticle() {
        return $this->hasOne(ArticleModel::class, 'id', 'article_id');
    }
}